package com.dfbz.demo02_缓存字符流;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_BufferedWriter {
    public static void main(String[] args) throws Exception{

        // 缓存字符输出流
        BufferedWriter bw = new BufferedWriter(new FileWriter("001.txt"));


        bw.write("你好");
        bw.newLine();
        bw.write("我好");
        bw.newLine();
        bw.write("大家好");

        bw.close();
    }
}
